--help ftw !
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 29 Nov 2005 19:12:15 +0000 (19:12 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 29 Nov 2005 19:12:15 +0000 (19:12 +0000)
maintenance/namespaceDupes.php

index 35d325c..1572be6 100644 (file)
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 # http://www.gnu.org/copyleft/gpl.html
 
-$options = array( 'fix', 'suffix' );
+$options = array( 'fix', 'suffix', 'help' );
 
 /** */
 require_once( 'commandLine.inc' );
 #require_once( 'maintenance/userDupes.inc' );
 
+if(isset( $options['help'] ) ) {
+print <<<END
+usage: namespaceDupes.php [--fix] [--suffix=<text>] [--help]
+    --help          : this help message
+    --fix           : attempt to automaticly fix errors
+    --suffix=<text> : dupes will be renamed with correct namespace with <text>
+                      appended after the article name.
+
+END;
+die;
+}
+
 class NamespaceConflictChecker {
        function NamespaceConflictChecker( &$db ) {
                $this->db =& $db;
@@ -164,4 +176,4 @@ if( $retval ) {
        exit( -1 );
 }
 
-?>
\ No newline at end of file
+?>